﻿@using OBUCare.Web.Infrastructure;
@model int
@{  
    ObuDropDownListHlper ddlHelper = new ObuDropDownListHlper();
    int index = Model;
}
<tr style="height: 40px;">
    <td>
        厂商：
    </td>
    <td>
        @Html.Telerik().DropDownList().Name("Supplier" + index.ToString()).BindTo(ddlHelper.GetSuppliers("请选择", true, new KeyValuePair<string, string>("请选择", "请选择"))).HtmlAttributes(new { @style = "width:120px;" }).ClientEvents(e => e.OnChange("changeSpecs"))
    </td>
    <td>
        型号：
    </td>
    <td>
        @Html.Telerik().DropDownList().Name("SpecName" + index.ToString()).HtmlAttributes(new { @style = "width:120px;", @id = "SpecName" + index.ToString() }).BindTo(new []{new SelectListItem(){Value="请选择",Text="请选择"}})
    </td>
    <td>
        入库日期:
    </td>
    <td>
        @Html.Telerik().DatePicker().Name("RecordDate" + index.ToString()).HtmlAttributes(new { @style = "width:120px;" }).Value(DateTime.Today)
    </td>
    <td>
        数量：
    </td>
    <td >
        @Html.Telerik().IntegerTextBox().Name("Amount" + index.ToString()).MinValue(0).MaxValue(1000000).Value(0).HtmlAttributes(new { @style = "width:100px;" }).InputHtmlAttributes(new { @style = "width:100px;" });
        （最大值：100万）
    </td>
    <td style="width: 100px;">
        <input type="button" value="删行" onclick="delTr(this);" />
        @*@if (index > 0)
        { 
            
        }
        else
        {
            <span>&nbsp;</span>
        }  *@
    </td>
</tr>
@{
    ddlHelper.Dispose();    
}
